<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('信用管理列表')" />
</head>
<body class="gray-bg">
<div class="container-div">
    <form class="form-horizontal m" id="form-apply-edit" th:object="${student}">
        <div class="form-group">
            <label class="col-sm-3 control-label">总分数：</label>
            <div class="col-sm-1">
                <input name="postId"   class="form-control" type="text" th:value="*{credit}" readonly>
            </div>
        </div>
    </form>
    <div class="row">
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table"></table>
        </div>
    </div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('wstudy:credit:edit')}]];
    var removeFlag = [[${@permission.hasPermi('wstudy:credit:remove')}]];
    var prefix = ctx + "wstudy/credit";

    $(function() {
        var options = {
            url: prefix + "/list/student/person",
            createUrl: prefix + "/add",
            updateUrl: prefix + "/edit/{id}",
            removeUrl: prefix + "/remove",
            exportUrl: prefix + "/export",
            showSearch: false,
            modalName: "信用管理",
            columns: [{
                checkbox: true
            },
                {
                    field: 'creditId',
                    title: 'ID',
                    visible: false
                },
                {
                    field: 'wstCredit.descore',
                    title: '分数'
                },
                {
                    field: 'wstCredit.info',
                    title: '原因'
                },
                {
                    field: 'params.createTime',
                    title: '时间'
                },
                ]
        };
        $.table.init(options);
    });
</script>
</body>
</html>